<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<link href="main.css" rel="stylesheet" type="text/css"/>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
	</head>

	<body>
		 <form name="form" action="orderformlist.do" method="post">
	           <input type="hidden" name="act"/>
	           <input type="hidden" name="orderFormId"/>
	      </form>
	<table class="tableborder" cellspacing=1 cellpadding=4 width="98%" align="center">
      <tr>
        <td colspan="11" class="header">采购订单维护</td>
      </tr>
      <tr class="altbg1" align="center">
        <td width="13%">订单编号</td>
        <td width="11%">物品名称</td>
        <td width="9%">牌号</td>
        <td width="9%">规格</td>
        <td width="9%">采购数量</td>
        <td width="13%">供应商</td>
        <td width="10%">联系方式</td>
        <td width="10%">订单状态</td>
        <td width="16%">操作</td>
      </tr>
	 <s:iterator value="pager.resultList"> 
		<tr class="altbg2" align="center">
			<td><s:property value="orderformid" /></td>
			<td><s:property value="goodsname" /></td>
			<td><s:property value="trademark" /></td>
			<td><s:property value="spec" /></td>
			<td><s:property value="quantity" /></td>
			<td><s:property value="provider" /></td>
			<td><s:property value="link" /></td>
			<td><s:property value="state" /></td>
        <td width="16%">
                     <a href="stockorderform!update.do?uid=<s:property value="id"/>">修改</a>&nbsp; 
                     <a href="stockorderform!savecheck.do?uid=<s:property value="id"/>">审批</a>&nbsp;
                     <a href="stockorderform!delete.do?uid=<s:property value="id"/>">删除</a>&nbsp;
        </td>
      </tr>
       </s:iterator>
    </table>
    		<s:form action="stockorderform!check.do" method="post" name="form1">	
		<table border="0" width="100%" class="pager">
			<tr>
				<td align="left">每页记录数：
					<s:select name="pageSize" key="pager.pageSize" list="pager.pageSizeIndexs" value="pager.pageSize" onchange="document.all.pageNo.value='1';document.all.form1.submit();"/>
				</td>
				<td align="center">
				总记录数：<s:property value="pager.rowCount" />
				</td>
				<td align="right">
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.firstPageNo" />';document.all.form1.submit();">首页</a>
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.prePageNo" />';document.all.form1.submit();">前一页</a>
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.nextPageNo" />';document.all.form1.submit();">后一页</a>
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.lastPageNo" />';document.all.form1.submit();">尾页</a>
					<s:select name="pageNo" list="pager.pageNoIndexs" value="pager.pageNo" onchange="document.all.form1.submit();"/>
				</td>
				<td width="20"></td>
			</tr>
		</table>
	</s:form>
	</body>
</html>
